const express = require('express')
//使用express的路由
const router = express.Router()
const loginHander = require('../route_hander/login')


//导入expressJoi
const expressJoi = require('@escook/express-joi')

//导入验证规则
const {
    login_limit
} = require('../limit/login')


//注册
router.post('/register', expressJoi(login_limit), loginHander.register)

//登录
router.post('/login', expressJoi(login_limit), loginHander.login)

//

//暴漏router对象
module.exports = router

